package com.itheima.demo07.demo5;


public class TestDemo {
    public static void main(String[] args) {
        Box box = new Box();
        //创建两个线程
        PersonA personA = new PersonA(box);
        personA.setName("小明");
        PersonB personB = new PersonB(box);
        personB.setName("小强");

        personA.start();
        personB.start();
    }
}
